package com.housekeeper.accessory.mapper;

import com.housekeeper.accessory.pojos.Accessory;

import com.housekeeper.accessory.pojos.AccessoryOrder;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;


@Mapper
public interface AccessoryMapper {
    @Select("SELECT * FROM accessory WHERE id = 1")
    Accessory getAccessory();
    @Select("SELECT * FROM accessory_order WHERE order_code = #{orderCode}")
    AccessoryOrder findByCode(@Param("orderCode") Long orderCode);


}